package cn.edu.sgu.www.mhxysy.dto.chongwu_equipment;

import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import cn.edu.sgu.www.mhxysy.consts.RegExps;
import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class ChongwuEquipmentDTO implements DataTransferObject {

	@ApiModelProperty(value = "ID")
	private String id;

	/**
	 * 装备评分
	 */
	@Positive(message = "装备评分" + CustomMessages.ILLEGAL)
	@NotNull(message = "装备评分" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "装备评分", required = true)
	private Integer score;

	/**
	 * 打造者
	 */
	@NotBlank(message = "打造者" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "打造者", required = true)
	private String forger;

	/**
	 * 角色ID
	 */
	@Pattern(regexp = RegExps.ROLE_ID, message = "角色ID" + CustomMessages.ILLEGAL)
	@NotBlank(message = CustomMessages.ROLE_ID_NOT_NULL)
	@ApiModelProperty(value = "角色ID", required = true)
	private String roleId;

	/**
	 * 宠物外观ID
	 */
	@PositiveOrZero(message = "宠物外观ID" + CustomMessages.ILLEGAL)
	@NotNull(message = "宠物外观" + CustomMessages.ID_NOT_NULL)
	@ApiModelProperty(value = "宠物外观ID", required = true)
	private Integer waiguanId;

	/**
	 * 宠物装备类型ID
	 */
	@Positive(message = "宠物装备类型ID" + CustomMessages.ILLEGAL)
	@NotNull(message = "宠物装备类型" + CustomMessages.ID_NOT_NULL)
	@ApiModelProperty(value = "宠物装备类型ID", required = true)
	private Integer categoryId;

	/**
	 * 宠物套装ID
	 */
	@PositiveOrZero(message = "宠物套装ID" + CustomMessages.ILLEGAL)
	@NotNull(message = "宠物套装" + CustomMessages.ID_NOT_NULL)
	@ApiModelProperty(value = "宠物套装ID", required = true)
	private Integer taozhuangId;
}